﻿#region Copyright

//  ======================================================
//      Copyright (c) 2011 Toulr All rights reserved.
//     
//      The use and distribution terms for this software are contained in the file
//      named license.txt, which can be found in the root of this distribution.
//      By using this software in any fashion, you are agreeing to be bound by the
//      terms of this license.
//     
//     You must not remove this notice, or any other, from this software.
//  ======================================================

#endregion

#region Using Namespaces

using System;
using System.ComponentModel.DataAnnotations;
using Toulr.Domains.Account;

#endregion

namespace Toulr.Domains.Business
{
    /// <summary>
    ///   店铺店长历史记录
    /// </summary>
    public class ShopManagerHistory
    {
        #region Property

        [Key]
        public int Id { get; set; }

        /// <summary>
        ///   店长
        /// </summary>
        public int ManagerId { get; set; }

        /// <summary>
        ///   任期开始时间
        /// </summary>
        public DateTime StartTime { get; set; }

        /// <summary>
        ///   任期结束时间
        /// </summary>
        public DateTime EndTime { get; set; }

        /// <summary>
        ///   店铺
        /// </summary>
        public int ShopId { get; set; }

        #endregion

        #region Associaction Objects

        /// <summary>
        ///   店长
        /// </summary>
        [NotMapped]
        public virtual User Manager
        {
            get { throw new NotImplementedException(); }
        }

        /// <summary>
        ///   店铺
        /// </summary>
        [NotMapped]
        public virtual Shop Shop
        {
            get { throw new NotImplementedException(); }
        }

        #endregion
    }
}